public class Test {
    public static void main(String[] args) {
        System.out.println("hello");
        while(true)
        {
            if (System.currentTimeMillis() % 1000 == 0) {
                System.out.println("running");
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
